import request from '@/utils/request'

export function getTreeData(params,type) {
    return request({
        url: '/app/task/getTreeData',
        method: 'get',
        params: params,
        type:type
    })
}


export function save(data){
    return request({
        url:'/app/task/save',
        method:'post',
        data:data
    })
}

export function update(data){
    return request({
        url:'/app/task/update',
        method:'put',
        data:data
    })
}


export function queryById(params){
    return request({
        url:'/app/task/queryById',
        method:'get',
        params:params
    })
}
export function taskTotal(params,type){
    return request({
        url:'/app/task/taskTotal',
        method:'get',
        params:params,
        type:type
    })
}


export function taskChange(params){
    return request({
        url:'/app/task/taskChange',
        method:'put',
        params:params
    })
}

export function del(params) {
    return request({
        url: '/app/task/delete',
        method: 'delete',
        params: params
    })
}

export function list(params) {
    return request({
        url: '/app/task/list',
        method: 'get',
        params: params
    })
}

export function summarize(params,type) {
    return request({
        url: '/app/task/summarize',
        method: 'get',
        params: params,
		type:type
    })
}
export function ganttChart(params) {
    return request({
        url: '/app/task/ganttChart',
        method: 'get',
        params: params
    })
}
export function getMeetTask(params,type) {
    return request({
        url: '/app/task/getMeetTask',
        method: 'get',
        params: params,
        type:type
    })
}

export function getTaskList(params,type) {
    return request({
        url: '/app/task/getTaskList',
        method: 'get',
        params: params,
        type:type
    })
}
export function modiTaskList(params,type) {
    return request({
        url: '/app/task/modiTaskList',
        method: 'get',
        params: params,
        type:type
    })
}
export function modiTask(data){
    return request({
        url:'/app/task/modiTask',
        method:'put',
        data:data
    })
}

export function taskCycle(params){
    return request({
        url:'/app/task/taskCycle',
        method:'get',
        params:params
    })
}

